package net.display;

import javax.servlet.http.HttpServletRequest;

import net.bo.KUtilisateur;
import net.ko.displays.KObjectDisplay;
import net.ko.kobject.KObject;

public class DisplayFonctionSupprimer extends KObjectDisplay {

	public String showInList(KObject ko, String memberName, HttpServletRequest request) {
		String res = super.showInList(ko, memberName, request);
		KUtilisateur user = (KUtilisateur) ko;

		if ("cocher".equals(memberName)) {
			res = "<input  id='utilisateur-" + user.getId() + "' type='checkbox' value=" + user.getId() + " />";

		}

		return res;
	}

}
